<?php

class Application_Model_DbTable_Action extends Zend_Db_Table_Abstract
{

    protected $_name = 'action';
        public function addAction($description){
              $timeStamp = mktime(date('H'),date('i'), date('s')
                            ,date('m'),date('d'),date('y'));
             $dob_disp1=strftime('%Y-%m-%d %H:%M:%S',$timeStamp);
              $data=array(
                 'description'=>$description,
                 'time'=>$dob_disp1
             );
              
              $this->insert( $data);
//             $this->insert($data);
                echo $this->getAdapter()->lastInsertId();
             return $this->getAdapter()->lastInsertId();
    }

}

